CREATE TABLE [dbo].[TTFACA_OPCI]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_MODU] [dbo].[TD_VC_008] NOT NULL,
[CO_MENU] [dbo].[TD_VC_020] NOT NULL,
[TI_CAMB] [dbo].[TD_VC_001] NOT NULL,
[TI_ORIG] [dbo].[TD_VC_001] NOT NULL,
[ST_EDIT] [dbo].[TD_VC_001] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTFACA_OP__CO_US__76577163] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTFACA_OP__FE_US__774B959C] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTFACA_OP__CO_US__783FB9D5] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTFACA_OP__FE_US__7933DE0E] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFACA_OPCI] ADD CONSTRAINT [PK__TTFACA_O__0680B89742E2BA55] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_MODU], [CO_MENU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFACA_OPCI] ADD CONSTRAINT [FK__TTFACA_OP__CO_EM__5C036DDA] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
